package com.msunsoft.common;

import org.springframework.context.ApplicationContext;

/**
 * 常量表
 * 
 */
public interface Constants {

    /** 客户端语言 */
    public static final String USERLANGUAGE            = "userLanguage";
    /** 客户端主题 */
    public static final String WEBTHEME                = "webTheme";
    /** 当前用户 */
    public static final String CURRENT_USER            = "CURRENT_USER";
    /** 在线用户数量 */
    public static final String ALLUSER_NUMBER          = "ALLUSER_NUMBER";
    /** 登录用户数量 */
    public static final String USER_NUMBER             = "USER_NUMBER";
    /** 上次请求地址 */
    public static final String PREREQUEST              = "PREREQUEST";
    /** 上次请求时间 */
    public static final String PREREQUEST_TIME         = "PREREQUEST_TIME";
    /** 非法请求次数 */
    public static final String MALICIOUS_REQUEST_TIMES = "MALICIOUS_REQUEST_TIMES";
    
    public static final String SESSION_SECURITY_CODE = "sessionSecCode";
    public static final String SESSION_USER = "sessionUser";
    public static final String SESSION_USER_RIGHTS = "sessionUserRights";
    public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
    public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)).*"; //不对匹配该值的访问路径拦截（正则）
    public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
    public static final String SESSION_REGIONMODIFY="sessionRegionModify";
    public static final String SESSION_PERSONALHEALTHIP="sessionPersonalHealthIP";
    
}
